
package HibernateLayer;

import POJOs.SSessionAllocation;
import POJOs.client;
import POJOs.ticket;
import org.hibernate.Session;

/**
 *
 * @author fabiofurlan
 */
public class VTicketServices extends VRelationBasicServices<client,ticket> {

    @Override
    protected Class<ticket> getTypeClass() {
        return ticket.class;
    }

    @Override
    protected Class<client> getTypeClassr() {
        return client.class;
    }

    public VTicketServices(){
    }

    public VTicketServices(Session sBean){
        this.sessionBean=sBean;
    }

    public VTicketServices(SSessionAllocation sAlloc){
        this.sessionAllocation=sAlloc;
        //In this code line we add this object to observable list of SSessionAllocation instance
        this.sessionAllocation.addObserver(this);
        this.sessionBean=sAlloc.session;
    }

}
